package com.zbj.homemade.spring.beans;

/**
 * @program: principle
 * @description: 不解释了 通俗易懂，单例bean注册器接口,通过此接口将已经实例化的单例放入map
 * @author: Yinn
 * @create: 2019-02-28 17:29
 **/
public interface SingletonBeanRegistry {

    void registerSingleton(String beanName, Object singletonObject);

    Object getSingleton(String beanName);

    boolean containsSingleton(String beanName);

    String[] getSingletonNames();

    int getSingletonCount();
}
